package com.axun.ckz.yytmanager.net;


import com.example.vuandroidadsdk.okhttp.CommonOkHttpClient;
import com.example.vuandroidadsdk.okhttp.listener.DisposeDataHandle;
import com.example.vuandroidadsdk.okhttp.listener.DisposeDataListener;
import com.example.vuandroidadsdk.okhttp.request.CommonRequest;
import com.example.vuandroidadsdk.okhttp.request.RequestParams;

/**
 * Created by ckz on 2018/4/23.
 */

public class HttpUtil {

    public static void post(String url, RequestParams requestParams, DisposeDataListener listener){
        CommonOkHttpClient.post(CommonRequest.startPost(url,requestParams),new DisposeDataHandle(listener));
    }

    public static void uploadFile(String url,RequestParams requestParams,DisposeDataListener listener){
        CommonOkHttpClient.post(CommonRequest.createMultiPostRequest(url,requestParams),new DisposeDataHandle(listener));
    }
}
